/*
 * @Description: cookies封装
 * @Author: ZY
 * @Date: 2020-12-17 16:06:33
 * @LastEditors: ZY
 * @LastEditTime: 2020-12-17 17:23:14
 */

import Cookies from 'js-cookie'



export const getToken = () => localStorage.getItem('tokenKey')
export const setTokens = (token: string) => localStorage.setItem('tokenKey', token)
//获取用户名
export const getCodeToken = () => localStorage.getItem('codeToke')
export const setCodeToken = (token: string) => localStorage.setItem('codeToke', token)
export const removeToken = () => Cookies.remove('tokenKey')


//登陆系列

export const getToken_Code = () => localStorage.getItem('TokenCode')
export const setToken_Code = (token: string) => localStorage.setItem('TokenCode', token)
export const getToken_AccToken = () => localStorage.getItem('TokenAccToken')
export const setToken_AccToken = (token: string) => localStorage.setItem('TokenAccToken', token)
export const getToken_Uid = () => localStorage.getItem('Uid');
export const setToken_Uid = (Uid: string) => localStorage.setItem('Uid', Uid);
export const getToken_Name = () => localStorage.getItem('TokenName')
export const setToken_Name = (token: string) => localStorage.setItem('TokenName', token)
